feat: Update nginx configw with keepalive and limit_conn settings - #1644
Conversation
Naramsim
left a comment
There was a problem hiding this comment.
I wouldn't touch the upstream part if possible
oh ok both the new upstream or just the renaming for gql? any particular reason why because the new upstream just creates a conn pool bw nginx and gunicorn for conn reuse |
|
I would only raise the connections value honestly. In the past I had issues with the upstreams in the GQL environment. With nginx refusing to startup if an upstream was down. If you want to modify it just make sure that nginx starts well when the pokeapi container is down. Because we keep the container down in the prod machine |
|
A PokeAPI/api-data refresh has started. In ~45 minutes the staging branch of PokeAPI/api-data will be pushed with the new generated data. |
|
The updater script has finished its job and has now opened a Pull Request towards PokeAPI/api-data with the updated data. |

Change description
related to this PokeAPI/ditto#54 (comment)
A limit of 10 is too low for any modern deployment web application for concurrent connections this fixes that
Updates the nginx config to allow for a larger limit of concurrent connections, also update keepalive settings for connections bw client and nginx, and nginx and gunicorn to 65 and 32 respectively
this prevents multiple tcp handshakes bw nginx and client, followed by again reduced conn drops bw nginx and the gunicorn server
before changes
after changes
above at same concurrent limit to keep the benchmarks fair it shows only the keep alive changes benefits though
this at capacity limit
AI coding assistance disclosure
None
Contributor check list